package com.qinge.blog.vo.paging;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.pagehelper.IPage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author QDW
 * @date 2022/5/8 16:14
 * @description 分页查询类
 * @return
 **/
@ApiModel(value="分页参数", description="分页参数")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PagingReqVO<T> implements IPage {

    static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前页码", required = true, example = "1")
    private Integer pageNum;

    @ApiModelProperty(value = "每页数量", required = true, example = "10")
    private Integer pageSize;

    @ApiModelProperty(value = "查询参数")
    private T params;

    @ApiModelProperty(value = "排序字符")
    private String orderBy;

    @JsonIgnore
    @ApiModelProperty(value = "当前用户的ID")
    private String userId;

}
